<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      Person.prototype.LastName = "xiao";
      Person.prototype.say = function () {
        console.log("haha");
      };
      function Person() {} //构造函数
      var person = new Person(); //对象
      console.log(person);
      console.log(person.__proto__);
    </script>
  </body>
</html>
